
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>CubeMX简介 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="创建一个工程.html" />
    
    
    <link rel="prev" href="VSCode插件分享.html" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="VScode的使用.html">
            
                <a href="VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="VSCode插件分享.html">
            
                <a href="VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3" data-path="CubeMX简介.html">
            
                <a href="CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="创建一个工程.html">
            
                <a href="创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="Git版本管理.html">
            
                <a href="Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="创建一个快速开发模板.html">
            
                <a href="创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../STM32的IO口/">
            
                <a href="../STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../STM32的IO口/点亮一个LED.html">
            
                <a href="../STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../STM32的IO口/使用独立按键.html">
            
                <a href="../STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../STM32中断/">
            
                <a href="../STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../STM32中断/CubeMX外部中断配置.html">
            
                <a href="../STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../STM32中断/HAL库外部中断程序.html">
            
                <a href="../STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../STM32定时器/">
            
                <a href="../STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../STM32定时器/定时器简单中断程序.html">
            
                <a href="../STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../STM32定时器/硬件PWM输出.html">
            
                <a href="../STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../STM32串口/">
            
                <a href="../STM32串口/">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../STM32串口/串口发送及中断接收.html">
            
                <a href="../STM32串口/串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../STM32串口/串口的格式化输出.html">
            
                <a href="../STM32串口/串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../STM32串口/串口DMA传输.html">
            
                <a href="../STM32串口/串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../STM32串口/简单协议编写.html">
            
                <a href="../STM32串口/简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../SPI协议/">
            
                <a href="../SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../SPI协议/CubeMX配置及主要函数.html">
            
                <a href="../SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../SPI协议/OLED驱动移植.html">
            
                <a href="../SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../SPI协议/LVGL移植显示.html">
            
                <a href="../SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../SPI协议/Flash的使用及文件系统.html">
            
                <a href="../SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../ADC的使用/">
            
                <a href="../ADC的使用/">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../ADC的使用/CubeMX中ADC配置概览.html">
            
                <a href="../ADC的使用/CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../ADC的使用/查询阻塞方式.html">
            
                <a href="../ADC的使用/查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../ADC的使用/中断方式.html">
            
                <a href="../ADC的使用/中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../ADC的使用/DMA方式.html">
            
                <a href="../ADC的使用/DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../ADC的使用/应用示例.html">
            
                <a href="../ADC的使用/应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../其他代码整合搬运/">
            
                <a href="../其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../其他代码整合搬运/MultiButton.html">
            
                <a href="../其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../其他代码整合搬运/EasyLogger.html">
            
                <a href="../其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../其他代码整合搬运/letter-shell.html">
            
                <a href="../其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../其他代码整合搬运/EasyFlash.html">
            
                <a href="../其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../其他代码整合搬运/时间片调度.html">
            
                <a href="../其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../加入我们/">
            
                <a href="../加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../加入我们/Gitbook环境.html">
            
                <a href="../加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../加入我们/Markdown语法简介.html">
            
                <a href="../加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../加入我们/编辑器推荐.html">
            
                <a href="../加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../加入我们/工程文件说明.html">
            
                <a href="../加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../加入我们/提交注意事项.html">
            
                <a href="../加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >CubeMX简介</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h1 id="cubemx&#x7B80;&#x4ECB;">CubeMX&#x7B80;&#x4ECB;</h1>
<h2 id="&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</h2>
<p>&#x5728;Cube&#x5DE5;&#x5177;&#x8FD8;&#x6CA1;&#x51FA;&#x6765;&#x4E4B;&#x524D;&#xFF0C;&#x5728;ST&#x7684;MCU&#x5F00;&#x53D1;&#x90FD;&#x662F;&#x7528;&#x6807;&#x51C6;&#x56FA;&#x4EF6;&#x5E93;&#xFF0C;&#x6807;&#x51C6;&#x5E93;&#x81EA;&#x63A8;&#x51FA;&#x4EE5;&#x6765;&#x53D7;&#x5230;ST&#x7684;&#x4F7F;&#x7528;&#x8005;&#x7684;&#x63A8;&#x5D07;&#xFF0C;&#x73B0;&#x5728;&#x5F88;&#x591A;&#x516C;&#x53F8;&#x4E5F;&#x90FD;&#x5728;&#x4F7F;&#x7528;&#x3002;&#x4F46;&#x662F;ST&#x5B98;&#x65B9;&#x5728;2013&#x5E74;&#x540E;&#x5C31;&#x6CA1;&#x6709;&#x66F4;&#x65B0;&#x7248;&#x672C;&#xFF0C;ST&#x5B98;&#x65B9;&#x4E5F;&#x5168;&#x529B;&#x63A8;<strong>HAL</strong>&#xFF08;Hardware Abstraction Layer&#xFF09;&#x5E93;&#x3002;&#x5B83;&#x7684;&#x5B58;&#x5728;&#x662F;&#x4E3A;&#x4E86;&#x786E;&#x4FDD; STM32 &#x7CFB;&#x5217;&#x6700;&#x5927;&#x7684;&#x79FB;&#x690D;&#x6027;&#x3002;HAL &#x4F4D;&#x4E8E;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5185;&#x6838;&#x4E0E;&#x786C;&#x4EF6;&#x7535;&#x8DEF;&#x4E4B;&#x95F4;&#x7684;&#x63A5;&#x53E3;&#x5C42;&#xFF0C;&#x5176;&#x76EE;&#x7684;&#x5728;&#x4E8E;&#x5C06;&#x786C;&#x4EF6;&#x62BD;&#x8C61;&#x5316;&#x3002;CubeMX&#x8F6F;&#x4EF6;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x6839;&#x636E;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x6240;&#x9700;&#x7684;&#x529F;&#x80FD;&#x52FE;&#x9009;&#xFF0C;&#x4EE5;HAL&#x5E93;&#x6587;&#x4EF6;&#x57FA;&#x7840;&#x81EA;&#x52A8;&#x4EA7;&#x751F;&#x4EE3;&#x7801;&#x3002;&#x5F00;&#x53D1;&#x8005;&#x5C31;&#x53EF;&#x4EE5;&#x8F7B;&#x677E;&#x5E94;&#x7528;&#x6BCF;&#x4E00;&#x4E2A;&#x5916;&#x8BBE;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x4F7F;&#x7528; HAL &#x5E93;&#x53EF;&#x4EE5;&#x5927;&#x5927;&#x51CF;&#x5C11;&#x7528;&#x6237;&#x7684;&#x7A0B;&#x5E8F;&#x7F16;&#x5199;&#x65F6;&#x95F4;&#xFF0C;&#x8FDB;&#x800C;&#x964D;&#x4F4E;&#x5F00;&#x53D1;&#x6210;&#x672C;&#x3002;&#x6BCF;&#x4E2A;&#x5916;&#x8BBE;&#x9A71;&#x52A8;&#x90FD;&#x7531;&#x4E00;&#x7EC4;&#x51FD;&#x6570;&#x7EC4;&#x6210;&#xFF0C;&#x8FD9;&#x7EC4;&#x51FD;&#x6570;&#x8986;&#x76D6;&#x4E86;&#x8BE5;&#x5916;&#x8BBE;&#x6240;&#x6709;&#x529F;&#x80FD;&#x3002;&#x6BCF;&#x4E2A;&#x5668;&#x4EF6;&#x7684;&#x5F00;&#x53D1;&#x90FD;&#x7531;&#x4E00;&#x4E2A;&#x901A;&#x7528; API (application programming interface &#x5E94;&#x7528;&#x7F16;&#x7A0B;&#x754C;&#x9762;)&#x9A71;&#x52A8;&#xFF0C;API &#x5BF9;&#x8BE5;&#x9A71;&#x52A8;&#x7A0B;&#x5E8F;&#x7684;&#x7ED3;&#x6784;&#xFF0C;&#x51FD;&#x6570;&#x548C;&#x53C2;&#x6570;&#x540D;&#x79F0;&#x90FD;&#x8FDB;&#x884C;&#x4E86;&#x6807;&#x51C6;&#x5316;&#x3002;</p>
<p>&#x5728; ST &#x5B98;&#x65B9;&#x7684;&#x58F0;&#x660E;&#x4E2D;&#xFF0C;HAL &#x5E93;&#x662F;&#x5927;&#x52BF;&#x6240;&#x8D8B;&#xFF0C;&#x5728; ST &#x516C;&#x53F8;&#x6700;&#x65B0;&#x5F00;&#x53D1;&#x7684;&#x90E8;&#x5206;&#x82AF;&#x7247;&#x4E2D;&#xFF0C;&#x53EA;&#x6709; HAL &#x5E93;&#x800C;&#x6CA1;&#x6709;&#x6807;&#x51C6;&#x5E93;&#xFF0C;&#x4ECE;&#x8FD9;&#x70B9;&#x4FBF;&#x53EF;&#x4EE5;&#x8BF4;&#x660E;&#xFF0C;&#x4EE5;&#x540E;&#x7684;&#x6218;&#x7565;&#x76EE;&#x6807;&#x662F;&#x9010;&#x6E10;&#x7684;&#x8F6C;&#x5411;HAL &#x5E93; &#x3002;&#x76F8;&#x5BF9;&#x4E8E;&#x6807;&#x51C6;&#x5E93;&#x6765;&#x8BF4;&#xFF0C;&#x5728;&#x4F7F;&#x7528; CubeMX &#x751F;&#x6210;&#x4EE3;&#x7801;&#x540E;&#xFF0C;&#x5DE5;&#x7A0B;&#x9879;&#x76EE;&#x548C;&#x521D;&#x59CB;&#x5316;&#x4EE3;&#x7801;&#x5DF2;&#x7ECF;&#x5B8C;&#x6210;&#x3002;CubeMX&#x4E5F;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x751F;&#x6210;&#x591A;&#x4E2A;&#x7F16;&#x8BD1;&#x5668;&#x7684;&#x521D;&#x59CB;&#x5316;&#x5DE5;&#x7A0B;&#x914D;&#x7F6E;&#xFF0C;&#x8BF8;&#x5982;MDK&#x548C;IAR&#x90FD;&#x6709;&#x7740;&#x652F;&#x6301;&#xFF0C;&#x6211;&#x4EEC;<strong>&#x4E3B;&#x8981;&#x4F7F;&#x7528;Makefile&#x5DE5;&#x5177;&#x94FE;&#x8DEF;&#x5F84;&#x548C;MDK</strong>&#x3002;</p>
<p>&#x4E0D;&#x8FC7;HAL&#x4E5F;&#x5B58;&#x5728;&#x8FD9;&#x4EE3;&#x7801;&#x6548;&#x7387;&#x4F4E;&#x4E8E;&#x6807;&#x51C6;&#x5E93;&#xFF0C;&#x65E7;&#x82AF;&#x7247;&#x578B;&#x53F7;&#x7684;&#x8D44;&#x6599;&#x6CA1;&#x6709;&#x6807;&#x51C6;&#x5E93;&#x90A3;&#x4E48;&#x591A;&#x7B49;&#x7F3A;&#x70B9;&#x3002;&#x5BF9;&#x4E8E;&#x6548;&#x7387;&#x4F4E;&#x4F18;&#x5316;&#x5DEE;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x5728;&#x719F;&#x7EC3;&#x4E4B;&#x540E;&#x53EF;&#x4EE5;&#x7528;CubeMX&#x751F;&#x6210;LL&#x5E93;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x6216;&#x8005;&#x5728;&#x5173;&#x952E;&#x4F4D;&#x7F6E;&#x76F4;&#x63A5;&#x64CD;&#x4F5C;&#x5BC4;&#x5B58;&#x5668;&#x4EE5;&#x63D0;&#x9AD8;&#x4EE3;&#x7801;&#x7684;&#x8FD0;&#x884C;&#x6548;&#x7387;&#x3002;&#x800C;&#x8D44;&#x6599;&#x4E0D;&#x8DB3;&#x4E5F;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x5E93;&#x51FD;&#x6570;&#x7684;&#x4EE3;&#x7801;&#x8FDB;&#x884C;&#x79FB;&#x690D;&#x3002;&#x7EFC;&#x5408;&#x770B;&#x4E0B;&#xFF0C;&#x4F7F;&#x7528;HAL&#x5E93;&#x914D;&#x5408;CubeMX&#x5F00;&#x53D1;&#x7684;&#x5468;&#x671F;&#x66F4;&#x77ED;&#xFF0C;&#x56E0;&#x6B64;&#x6211;&#x4EEC;&#x7684;&#x6559;&#x7A0B;&#x90FD;&#x4F1A;&#x4EE5;CubeMX&#x751F;&#x6210;&#x7684;&#x5DE5;&#x7A0B;&#x4E3A;&#x6A21;&#x677F;&#x5DE5;&#x7A0B;&#x3002;</p>
<h2 id="&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;">&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;</h2>
<p>CubeMX&#x4E3A;ST&#x516C;&#x53F8;&#x4E3A;&#x5F00;&#x53D1;&#x8005;&#x63D0;&#x4F9B;&#x7684;&#x514D;&#x8D39;&#x8F6F;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4ECE;<a href="https://www.st.com/zh/development-tools/stm32cubemx.html#overview&amp;secondary=st-get-software" target="_blank">&#x5B98;&#x7F51;&#x4E0B;&#x8F7D;</a>&#x5230;&#x6700;&#x65B0;&#x7684;&#x7248;&#x672C;&#x3002;&#x4E0D;&#x8FC7;&#x4E0B;&#x8F7D;&#x4E4B;&#x524D;&#x6700;&#x597D;&#x95EE;&#x4E00;&#x4E0B;&#x5468;&#x56F4;&#x7684;&#x4F7F;&#x7528;&#x7684;&#x662F;&#x54EA;&#x4E00;&#x4E2A;&#x7248;&#x672C;&#xFF0C;&#x4F4E;&#x7248;&#x672C;&#x7684;CubeMX&#x662F;&#x6253;&#x4E0D;&#x5F00;&#x9AD8;&#x7248;&#x672C;&#x914D;&#x7F6E;&#x5DE5;&#x7A0B;&#x7684;&#xFF0C;&#x8FD9;&#x70B9;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x3002;&#x518D;&#x8005;&#xFF0C;&#x5B89;&#x88C5;&#x65F6;&#x5C3D;&#x91CF;&#x9009;&#x62E9;&#x4E00;&#x4E2A;&#x8F83;&#x5927;&#x7684;&#x786C;&#x76D8;&#x4EE5;&#x53CA;<strong>&#x5168;&#x82F1;&#x6587;&#x7684;&#x8DEF;&#x5F84;</strong>&#xFF0C;&#x4EE5;&#x907F;&#x514D;&#x540E;&#x9762;&#x652F;&#x6301;&#x5305;&#x653E;&#x4E0D;&#x4E0B;&#x548C;&#x8FD0;&#x884C;&#x4E0D;&#x7A33;&#x5B9A;&#x3002;</p>
<h2 id="&#x652F;&#x6301;&#x5305;">&#x652F;&#x6301;&#x5305;</h2>
<p>&#x5B89;&#x88C5;&#x597D;&#x8F6F;&#x4EF6;&#x5728;&#x751F;&#x6210;&#x4EE3;&#x7801;&#x521D;&#x59CB;&#x5316;&#x5DE5;&#x7A0B;&#x4E4B;&#x524D;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x9700;&#x8981;&#x5B89;&#x88C5;&#x6240;&#x4F7F;&#x7528;&#x7684;MCU&#x5BF9;&#x5E94;&#x7684;&#x652F;&#x6301;&#x5305;&#xFF0C;&#x6253;&#x5F00;CubeMX&#x7684;help&#x4E00;&#x680F;&#xFF0C;&#x627E;&#x5230;&#x5982;&#x4E0B;&#x9009;&#x9879;&#x5B89;&#x88C5;&#x82AF;&#x7247;&#x652F;&#x6301;&#x5305;&#xFF1A;</p>
<p><img src="assets/&#x5B89;&#x88C5;&#x652F;&#x6301;&#x5305;.png" alt="&#x5B89;&#x88C5;&#x652F;&#x6301;&#x5305;"></p>
<p>&#x4EE5;&#x6211;&#x4EEC;&#x5165;&#x95E8;&#x4F7F;&#x7528;&#x7684;F4&#x5355;&#x7247;&#x673A;&#x4E3A;&#x4F8B;&#xFF0C;&#x53EF;&#x4EE5;&#x5B89;&#x88C5;&#x5982;&#x4E0B;&#x652F;&#x6301;&#x5305;&#xFF1A;</p>
<p><img src="assets/&#x5B89;&#x88C5;F4&#x652F;&#x6301;&#x5305;.png" alt="&#x5B89;&#x88C5;F4&#x652F;&#x6301;&#x5305;"></p>
<p>&#x5B89;&#x88C5;&#x540E;&#x4E4B;&#x540E;&#x5C31;&#x53EF;&#x5F00;&#x59CB;&#x4EE3;&#x7801;&#x5DE5;&#x7A0B;&#x7684;&#x521B;&#x5EFA;&#x4E86;&#xFF0C;&#x6709;&#x8981;&#x7528;&#x5230;&#x7684;&#x82AF;&#x7247;&#x5219;&#x5B89;&#x88C5;&#x5BF9;&#x5E94;&#x7CFB;&#x5217;&#x7684;&#x652F;&#x6301;&#x5305;&#x5373;&#x53EF;&#x3002;&#x4E0D;&#x8FC7;CubeMX&#x5728;&#x5B89;&#x88C5;&#x597D;&#x65B0;&#x7248;&#x672C;&#x7684;&#x652F;&#x6301;&#x5305;&#x540E;&#xFF0C;<strong>&#x4E0D;&#x4F1A;&#x5220;&#x9664;&#x65E7;&#x7684;&#x652F;&#x6301;&#x5305;</strong>&#xFF0C;&#x786C;&#x76D8;&#x7A7A;&#x95F4;&#x7D27;&#x5F20;&#x7684;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x624B;&#x52A8;&#x8FDB;&#x884C;&#x5220;&#x9664;&#xFF1A;</p>
<p><img src="assets/&#x5220;&#x9664;&#x652F;&#x6301;&#x5305;.png" alt="&#x5220;&#x9664;&#x652F;&#x6301;&#x5305;"></p>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="VSCode插件分享.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: VScode插件分享"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="创建一个工程.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 创建一个工程"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"CubeMX简介","level":"1.2.3","depth":2,"next":{"title":"创建一个工程","level":"1.2.4","depth":2,"path":"软件环境/创建一个工程.md","ref":"./软件环境/创建一个工程.md","articles":[]},"previous":{"title":"VScode插件分享","level":"1.2.2","depth":2,"path":"软件环境/VSCode插件分享.md","ref":"./软件环境/VSCode插件分享.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"软件环境/CubeMX简介.md","mtime":"2023-04-04T06:18:13.563Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

